home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7007 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: engr.sgi.com!shankar
  2. From: shankar@mti.sgi.com (Shankar Unni)
  3. Newsgroups: gnu.g++.help,comp.lang.c++,comp.sys.sgi.apps,comp.sys.sgi.misc
  4. Subject: Re: SGI and C++
  5. Followup-To: gnu.g++.help,comp.lang.c++,comp.sys.sgi.apps,comp.sys.sgi.misc
  6. Date: 20 Feb 1996 20:11:16 GMT
  7. Organization: Silicon Graphics, Inc., Mountain View, CA
  8. Message-ID: <4gd9t4$4kk@fido.asd.sgi.com>
  9. References: <4f609s$rho@fu-berlin.de> <4f6726$4ch@fido.asd.sgi.com> <4fahih$s13@fu-berlin.de> <4fbhs0$eo3@fido.asd.sgi.com> <4fl2nh$b66@sun20.ccd.bnl.gov> <4ga186$bk2@oban.cc.ic.ac.uk> <4gar2s$905@fido.asd.sgi.com> <4gb2rg$b99@nntp1.u.washington.edu>
  10. Reply-To: shankar@engr.sgi.com
  11. NNTP-Posting-Host: boris.mti.sgi.com
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. Laurence Yaffe (lgy@newton.phys.washington.edu) wrote:
  15.  
  16. > Is there any similar problem with inlining non-member template functions?
  17.  
  18. No.
  19.  
  20. > What is the easiest way to tell if a function actually did get inlined?
  21.  
  22. Run "nm" on a .o that calls the inline function, and see if there's a
  23. symbol for the name of the inline function. If there is, that function did
  24. not get inlined in one or more places..
  25.  
  26. (Actually, in releases before patch 556, turning on -g would cause dummy
  27. bodies to be emitted for inline functions - the theory being that you would
  28. maybe want to call them from a debugger command line - but we've stopped
  29. doing that now. Still, this "nm" test is really reliable only for an object
  30. compiled without -g).
  31.  
  32. We're looking into putting in warnings in the compiler whenever it can't
  33. inline something that's declared inline.  This wouldn't have caught the
  34. template case above (that was a plain bug where the compiler dropped the
  35. respecification on the floor), however..
  36. --
  37. Shankar Unni                E-Mail:    shankar@sgi.com
  38. Silicon Graphics Inc.            Phone:    +1-415-933-2072
  39. URL:    http://reality.sgi.com/employees/shankar
  40.